<div class="layui-form" lay-filter="layuiadmin-form-risk" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item layui-row">
        <label class="layui-form-label">纳税人识别号</label>
        <div class="layui-input-inline layui-col-md9">
            <script type="text/html" template>
                <input type="text" name="NSRSBH" value="{{ d.params.NSRSBH || '' }}" lay-verify="required|isExist"
                       placeholder="请输入纳税人识别号" autocomplete="off" class="layui-input ">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">纳税人名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="NSRMC" value="{{ d.params.NSRMC || '' }}" lay-verify="required|isExist"
                       placeholder="请输入纳税人名称" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">风险行业代码</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="FXHY_DM" value="{{ d.params.FXHY_DM || '' }}" lay-verify="required|isExist"
                       placeholder="请输入风险行业代码" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">风险行业名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="FXHY_MC" value="{{ d.params.FXHY_MC || '' }}" lay-verify="required|isExist"
                       placeholder="请输入风险行业代码" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">有效标志</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input type="radio" name="YXBZ" value="Y" title="是">
                <input type="radio" name="YXBZ" value="N" title="否" >
            </script>

        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label">有效期起</label>
        <div class="layui-input-inline ">
<!--            <script type="text/html" template>-->
                <input class="layui-input" type="text" id="YXQQ" name="YXQQ" lay-verify="required|isExist"
                       >
<!--            </script>-->
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label">有效期止</label>
        <div class="layui-input-inline ">
<!--            <script type="text/html" template>-->
                <input type="text" id="YXQZ" name="YXQZ"  lay-verify="required|isExist"
                       class="layui-input" >
<!--            </script>-->
        </div>
    </div>
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">录入人代码</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template>-->
<!--                <input type="text" name="LRR_DM" value="{{ d.params.LRR_DM || '' }}" lay-verify="required|isExist"-->
<!--                       placeholder="请输入录入人" autocomplete="off" class="layui-input">-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">录入日期</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template>-->
<!--                <input type="text" id="LRRQ" name="LRRQ" value="{{ d.params.LRRQ || '' }}" lay-verify="required|isExist"-->
<!--                       class="layui-input">-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">修改人</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template>-->
<!--                <input type="text" name="XGR_DM" value="{{ d.params.XGR_DM || '' }}" lay-verify="required|isExist"-->
<!--                       placeholder="请输入修改人" autocomplete="off" class="layui-input">-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">修改日期</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template>-->
<!--                <input type="text" id="XGRQ" name="XGRQ" value="{{ d.params.XGRQ || '' }}" lay-verify="required|isExist"-->
<!--                       class="layui-input">-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-risk-submit" value="确认" class="layui-btn"
            >
        </div>
    </div>
</div>
<script>

    layui.use(['form', 'laydate'], function () {
        var form = layui.form
            , laydate = layui.laydate
            , $ = layui.$
        $(".layui-form-label").css({"width": "140px"});
        console.log(11111111111)
        // lay('.date-format').each(function () {
        //     console.log('时间框。。。')
        //     laydate.render({
        //         elem: this
        //         , trigger: 'click'
        //     });
        // });

        laydate.render({     //创建时间选择框
            elem: '#YXQQ' ,//指定元素
            trigger: 'click',
            // type:'datetime'
        });
        laydate.render({     //创建时间选择框
            elem: '#YXQZ', //指定元素
            trigger: 'click',
        });
        // laydate.render({     //创建时间选择框
        //     elem: '#LRRQ' //指定元素
        // });
        // laydate.render({     //创建时间选择框
        //     elem: '#XGRQ' //指定元素
        // });
        // form.verify({
        //     isExist: function (value) {
        //         var params = $('.layui-input-inline input[name="roleName"]').val();
        //         debugger
        //         var data;
        //         $.ajax({
        //             url: 'http://172.20.10.12:8000/post/',
        //             beforeSend: function (XMLHttpRequest) {
        //                 XMLHttpRequest.setRequestHeader("Authorization", layui.data('layuiAdmin', 'Authorization'));
        //             },
        //             contentType: "application/json",
        //             dataType: 'json',
        //             type: "post",
        //             async: false,
        //             data: JSON.stringify({"name": params}),
        //             success: function (result) {
        //                 data = result
        //             },
        //         });
        //         if (false) {
        //             return '用户id已存在';
        //         }
        //
        //     }
        //
        // })
    })
</script>

